package com.xuecheng.comment.controller;

import com.xuecheng.api.comment.model.dto.CommentReplyDTO;
import com.xuecheng.api.comment.model.vo.CommentReplyVO;
import com.xuecheng.comment.service.CommentReplyService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author itcast
 */
@Slf4j
@RestController
@RequestMapping
public class CommentReplyController {

    @Autowired
    private CommentReplyService commentReplyService;

    @PostMapping("l/comment_reply")
    public CommentReplyDTO replyMsg(@RequestBody CommentReplyVO commentReplyVO) {
        CommentReplyDTO commentReplyDTO = commentReplyService.replyMsg(commentReplyVO);
        return commentReplyDTO;
    }

}
